<%@ page import="com.fhd.constant.Constants" %>
<%@ page import="com.fhd.pojo.Client" %><%--
  Created by IntelliJ IDEA.
  User: 44252
  Date: 2025/3/26
  Time: 15:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>客户主页</title>
</head>
<body>
<h1>客户主页</h1>
<h2>
<%=((Client)request.getSession().getAttribute(Constants.CLIENT_SESSION)).getUserName()%>,你好
</h2>
<br>
<a href="<%=request.getContextPath()%>/jsp/clientUpdateInformation.jsp">修改个人信息</a>
<br><br>
<a href="<%=request.getContextPath()%>/client.do?method=getPoints">签到领取积分</a> (当前积分: <%=((Client)request.getSession().getAttribute(Constants.CLIENT_SESSION)).getPoints()%>)
<%
    String message = (String) request.getSession().getAttribute(Constants.GET_POINTS_MESSAGE);
    if (message != null) {
        out.write("<span style=\"color: red\">" + message + "</span>");
        request.getSession().removeAttribute(Constants.GET_POINTS_MESSAGE);
    }
%>
<br><br>
<a href="<%=request.getContextPath()%>/client.do?method=getSomeoneRecharges">我的钱包</a>
<br><br>
<a href="<%=request.getContextPath()%>/client.do?method=getAllMerchant">我要订房</a>
<br><br>
<a href="<%=request.getContextPath()%>/client.do?method=getClientBill">历史订单</a>
<br><br>
<a href="<%=request.getContextPath()%>/client.do?method=clientLogout">退出登录</a>

</body>
</html>
